package hz.mobileproject.pda.utils;

import android.graphics.Paint;
import android.text.Html;
import android.widget.TextView;

/**
 * Created by Alex on 2018/4/28.
 */

public class TextViewUtil {

    public static void setUnderLine(TextView textView,String str) {
        textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线
        textView.getPaint().setAntiAlias(true);//抗锯齿
        textView.setText(Html.fromHtml(str));
    }
}
